//
//  ARDatabase.m
//  Staff
//
//  Created by Marcus on 12/28/14.
//
//

#import "ARDatabase.h"

@implementation ARDatabase

+ (ARDatabase *)parserARDatabaseObjectWithJson:(NSDictionary *)jsonDic {
   
    ARDatabase *arDB = [[ARDatabase alloc] init];
    arDB.hashCode = [jsonDic objectForKey:@"hashcode"];
    arDB.zipURL = [jsonDic objectForKey:@"zipurl"];
    arDB.size = [[jsonDic objectForKey:@"size"] floatValue];
    arDB.fileName = [[arDB.zipURL componentsSeparatedByString:@"/"] lastObject];
    return arDB;
    
}

@end
